]> dgit.raspbian.org Git - gnome-shell.git/commit
swipeTracker: Immediately flip delta in RTL locales
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 20 Nov 2025 15:09:44 +0000 (16:09 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 24 Nov 2025 13:43:00 +0000 (14:43 +0100)
commit09a201be0899f265b53d652e90deb6866bf4b525
treea761ae5aa83bb4709b30426bbe5e9dd5b50d6ed9
parent2b2c7dfa4be8c2ce8b05e0ab4d95a7f0693b5b56
swipeTracker: Immediately flip delta in RTL locales

The delta is currently flipped in a shared code path, after appending
the unmodified value to the event history. As a result, the calculated
final velocity for touchpad gestures is wrong in RTL locales.

Fix this by modifying the delta immediately when handling the events,
so that all other code operates on the correct values.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8840
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3967>
(cherry picked from commit a02835aacadbc14dc4350add3bae99c70e38f1b0)
js/ui/swipeTracker.js